# -*-coding:utf-8-*-

success_code = 200
error_code = 500

def ok(message="请求成功",data=None):
    dic = {'code':success_code,'message':message,'data':data}
    return dic

def error(message = "请求失败",data=None):
    dic = {'code':error_code,'message':message,'data':data}
    return dic